<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>crm</title>
    <link rel="stylesheet" href="../layui/css/layui.css"/>
    <script src="../js/jquery-1.12.3.min.js"></script>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../bootstrap/css/bootstrap-theme.min.css"/>
    <script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
    <link href="../bootstrapv/css/bootstrapValidator.min.css" rel="stylesheet" />
    <script type="text/javascript" src="../bootstrapv/js/bootstrapValidator.min.js"></script>

    <script src="../js/common.js"></script>
    <script src="../layui/layui.js"></script>
    <style>
        .btnDiv{
            text-align: center;
        }
    </style>
</head>
<body>

<table class="layui-hide" id="test" lay-filter="test"></table>

<script type="text/html" id="toolbarDemo">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="add">添加员工</button>
        <button class="layui-btn layui-btn-sm" lay-event="delete">删除员工</button>
        <button class="layui-btn layui-btn-sm" lay-event="search">条件查询</button>
    </div>
</script>

<div id="addFormDiv" class="container-fluid">
    <div class="formDivClass row">
        <form action="/employeeRest/saveOrUpdate" id="addForm" class="form-horizontal">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户名称:</label>
                    <div class="col-sm-9">
                        <input name="po.userName" type="text" class="form-control" placeholder="请输入用户名称"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">真实姓名:</label>
                    <div class="col-sm-9">
                        <input name="po.realName" type="text" class="form-control" placeholder="请输入真实姓名"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">电话号码:</label>
                    <div class="col-sm-9">
                        <input name="po.tel" type="text" class="form-control" placeholder="请输入电话号码"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">电子邮箱:</label>
                    <div class="col-sm-9">
                        <input name="po.email" type="text" class="form-control" placeholder="请输入电子邮箱"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">部门:</label>
                    <div class="col-sm-9">
                        <input name="po.dept" type="text" class="form-control" placeholder="请输入电子邮箱"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">状态:</label>
                    <div class="col-sm-9">
                        <select name="po.state" class="form-control">
                            <option value="0">正常</option>
                            <option value="-1">离职</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">超管:</label>
                    <div class="col-sm-9">
                        <select name="po.admin" class="form-control">
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">角色:</label>
                    <div class="col-sm-9">
                        <input name="po.role" type="text" class="form-control" placeholder="请输入角色"/>
                    </div>
                </div>
            </div>
            <div class="btnDiv">
                <button type="submit" class="layui-btn">提交</button>
                <button type="reset" class="layui-btn layui-btn-danger">重置</button>
            </div>
        </form>
    </div>
</div>

<div id="searchFormDiv" class="container-fluid">
    <div class="formDivClass row">
        <form id="searchForm" class="form-horizontal">
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">用户名称:</label>
                    <div class="col-sm-9">
                        <input id="userNameSearch" name="po.userName" type="text" class="form-control" placeholder="请输入用户名称"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">真实姓名:</label>
                    <div class="col-sm-9">
                        <input id="realNameSearch" name="po.realName" type="text" class="form-control" placeholder="请输入真实姓名"/>
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">电话号码:</label>
                    <div class="col-sm-9">
                        <input id="telSearch" name="po.tel" type="text" class="form-control" placeholder="请输入电话号码"/>
                    </div>
                </div>
            </div>
            <div class="btnDiv">
                <button type="submit" class="layui-btn">查询</button>
                <button type="reset" class="layui-btn layui-btn-danger">重置</button>
            </div>
        </form>
    </div>
</div>

<script src="../js/employee.js"></script>
</body>
</html>